﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02001397 RID: 5015
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class TakeRogueMiracleHandbookRewardScRsp : IMessage<TakeRogueMiracleHandbookRewardScRsp>, IMessage, IEquatable<TakeRogueMiracleHandbookRewardScRsp>, IDeepCloneable<TakeRogueMiracleHandbookRewardScRsp>, IBufferMessage
	{
		// Token: 0x17003F3B RID: 16187
		// (get) Token: 0x0600E08F RID: 57487 RVA: 0x00258747 File Offset: 0x00256947
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<TakeRogueMiracleHandbookRewardScRsp> Parser
		{
			get
			{
				return TakeRogueMiracleHandbookRewardScRsp._parser;
			}
		}

		// Token: 0x17003F3C RID: 16188
		// (get) Token: 0x0600E090 RID: 57488 RVA: 0x0025874E File Offset: 0x0025694E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return TakeRogueMiracleHandbookRewardScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17003F3D RID: 16189
		// (get) Token: 0x0600E091 RID: 57489 RVA: 0x00258760 File Offset: 0x00256960
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return TakeRogueMiracleHandbookRewardScRsp.Descriptor;
			}
		}

		// Token: 0x0600E092 RID: 57490 RVA: 0x00258767 File Offset: 0x00256967
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TakeRogueMiracleHandbookRewardScRsp()
		{
		}

		// Token: 0x0600E093 RID: 57491 RVA: 0x0025877C File Offset: 0x0025697C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TakeRogueMiracleHandbookRewardScRsp(TakeRogueMiracleHandbookRewardScRsp other) : this()
		{
			this.retcode_ = other.retcode_;
			this.reward_ = ((other.reward_ != null) ? other.reward_.Clone() : null);
			this.rewardHandbookMiracleList_ = other.rewardHandbookMiracleList_.Clone();
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600E094 RID: 57492 RVA: 0x002587D9 File Offset: 0x002569D9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TakeRogueMiracleHandbookRewardScRsp Clone()
		{
			return new TakeRogueMiracleHandbookRewardScRsp(this);
		}

		// Token: 0x17003F3E RID: 16190
		// (get) Token: 0x0600E095 RID: 57493 RVA: 0x002587E1 File Offset: 0x002569E1
		// (set) Token: 0x0600E096 RID: 57494 RVA: 0x002587E9 File Offset: 0x002569E9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x17003F3F RID: 16191
		// (get) Token: 0x0600E097 RID: 57495 RVA: 0x002587F2 File Offset: 0x002569F2
		// (set) Token: 0x0600E098 RID: 57496 RVA: 0x002587FA File Offset: 0x002569FA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ItemList Reward
		{
			get
			{
				return this.reward_;
			}
			set
			{
				this.reward_ = value;
			}
		}

		// Token: 0x17003F40 RID: 16192
		// (get) Token: 0x0600E099 RID: 57497 RVA: 0x00258803 File Offset: 0x00256A03
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<uint> RewardHandbookMiracleList
		{
			get
			{
				return this.rewardHandbookMiracleList_;
			}
		}

		// Token: 0x0600E09A RID: 57498 RVA: 0x0025880B File Offset: 0x00256A0B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as TakeRogueMiracleHandbookRewardScRsp);
		}

		// Token: 0x0600E09B RID: 57499 RVA: 0x0025881C File Offset: 0x00256A1C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(TakeRogueMiracleHandbookRewardScRsp other)
		{
			return other != null && (other == this || (this.Retcode == other.Retcode && object.Equals(this.Reward, other.Reward) && this.rewardHandbookMiracleList_.Equals(other.rewardHandbookMiracleList_) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600E09C RID: 57500 RVA: 0x00258880 File Offset: 0x00256A80
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this.reward_ != null)
			{
				num ^= this.Reward.GetHashCode();
			}
			num ^= this.rewardHandbookMiracleList_.GetHashCode();
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600E09D RID: 57501 RVA: 0x002588E3 File Offset: 0x00256AE3
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600E09E RID: 57502 RVA: 0x002588EB File Offset: 0x00256AEB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600E09F RID: 57503 RVA: 0x002588F4 File Offset: 0x00256AF4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.reward_ != null)
			{
				output.WriteRawTag(50);
				output.WriteMessage(this.Reward);
			}
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(64);
				output.WriteUInt32(this.Retcode);
			}
			this.rewardHandbookMiracleList_.WriteTo(ref output, TakeRogueMiracleHandbookRewardScRsp._repeated_rewardHandbookMiracleList_codec);
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600E0A0 RID: 57504 RVA: 0x00258960 File Offset: 0x00256B60
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this.reward_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.Reward);
			}
			num += this.rewardHandbookMiracleList_.CalculateSize(TakeRogueMiracleHandbookRewardScRsp._repeated_rewardHandbookMiracleList_codec);
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600E0A1 RID: 57505 RVA: 0x002589CC File Offset: 0x00256BCC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(TakeRogueMiracleHandbookRewardScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			if (other.reward_ != null)
			{
				if (this.reward_ == null)
				{
					this.Reward = new ItemList();
				}
				this.Reward.MergeFrom(other.Reward);
			}
			this.rewardHandbookMiracleList_.Add(other.rewardHandbookMiracleList_);
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600E0A2 RID: 57506 RVA: 0x00258A45 File Offset: 0x00256C45
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600E0A3 RID: 57507 RVA: 0x00258A50 File Offset: 0x00256C50
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 64U)
				{
					if (num == 50U)
					{
						if (this.reward_ == null)
						{
							this.Reward = new ItemList();
						}
						input.ReadMessage(this.Reward);
						continue;
					}
					if (num == 64U)
					{
						this.Retcode = input.ReadUInt32();
						continue;
					}
				}
				else if (num == 96U || num == 98U)
				{
					this.rewardHandbookMiracleList_.AddEntriesFrom(ref input, TakeRogueMiracleHandbookRewardScRsp._repeated_rewardHandbookMiracleList_codec);
					continue;
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x040058ED RID: 22765
		private static readonly MessageParser<TakeRogueMiracleHandbookRewardScRsp> _parser = new MessageParser<TakeRogueMiracleHandbookRewardScRsp>(() => new TakeRogueMiracleHandbookRewardScRsp());

		// Token: 0x040058EE RID: 22766
		private UnknownFieldSet _unknownFields;

		// Token: 0x040058EF RID: 22767
		public const int RetcodeFieldNumber = 8;

		// Token: 0x040058F0 RID: 22768
		private uint retcode_;

		// Token: 0x040058F1 RID: 22769
		public const int RewardFieldNumber = 6;

		// Token: 0x040058F2 RID: 22770
		private ItemList reward_;

		// Token: 0x040058F3 RID: 22771
		public const int RewardHandbookMiracleListFieldNumber = 12;

		// Token: 0x040058F4 RID: 22772
		private static readonly FieldCodec<uint> _repeated_rewardHandbookMiracleList_codec = FieldCodec.ForUInt32(98U);

		// Token: 0x040058F5 RID: 22773
		private readonly RepeatedField<uint> rewardHandbookMiracleList_ = new RepeatedField<uint>();
	}
}
